<!DOCTYPE html>
<html lang="en">

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta charset="UTF-8">
    <title>内容页面</title>
    <style>
        body {
            padding: 0px;
            margin: 0px;
            font-size: 16px;
        }

        .content p {
            margin: 0px;
            padding:0px;
        }

        .content img {
            width: 100%;
            max-width: 380px;
            display: inline-block;
            vertical-align: bottom;
        }
        h3{
            font-size:24px;
        }
    </style>
</head>

<body>
{TITLE}
<div class="content">
{CONTENT}
</div>
<script>
        var App = {
            article: function (id) {
                if (window.YP) window.YP.article(id);
            },
            lesson: function (id) {
                if (window.YP) window.YP.lesson(id);
            },
            welesson: function (id) {

                if (window.YP) window.YP.welesson(id);
            }, file: function (id) {

                if (window.YP) window.YP.file(id);
            }, images: function (images,index) {
                if (window.YP) window.YP.showImage(images,index);
            }, vip: function () {
                if (window.YP) window.YP.vip();
            }, changeVip: function () {

                if (window.YP) window.YP.changeVip();
            },videojiqiao:function(id){

               if (window.YP) window.YP.videoJiqiao(id);
            }
        };
        var l = document.getElementsByTagName("article").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("article")[i].onclick = function () {
                App.article(this.getAttribute("data"));
            };
        }
        var l = document.getElementsByTagName("videojiqiao").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("videojiqiao")[i].onclick = function () {
                App.videojiqiao(this.getAttribute("data"));
            };
        }
        l = document.getElementsByTagName("lesson").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("lesson")[i].onclick = function () {
                App.lesson(this.getAttribute("data"));
            };
        }
        l = document.getElementsByTagName("welesson").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("welesson")[i].onclick = function () {
                App.welesson(this.getAttribute("data"));
            };
        }
        l = document.getElementsByTagName("file").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("file")[i].onclick = function () {
                App.file(this.getAttribute("data"));
            };
        }
        l = document.getElementsByTagName("tao").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("tao")[i].onclick = function () {
                App.tao(this.getAttribute("data"));
            };
        }

        l = document.getElementsByTagName("vip").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("vip")[i].onclick = function () {
                App.vip();
            };
        }
        l = document.getElementsByTagName("changevip").length;
        for (var i = 0; i < l; i++) {
            document.getElementsByTagName("changevip")[i].onclick = function () {
                App.changeVip();
            };
        }
        var images = [];
        var l = document.getElementsByTagName("img").length;
        for (var i = 0; i < l; i++) {
            images.push(document.getElementsByTagName("img")[i].src);
            document.getElementsByTagName("img")[i].imgIndex=i;
            document.getElementsByTagName("img")[i].onclick = function () {
                App.images(images.join("|"),this.imgIndex);
            };
        }

    </script>
</body>

</html>